﻿{include file=header.html}
<body>
<div class="sub-body">
<h3 class="title-1">{$lang.sourcing_task_manage}</h3>
<div class="tab-frame">
    <div class="tab-title-1"><span>{$lang.sourcing_infom}</span></div>
    <table cellspacing="0" cellpadding="0" class="tab-add" id="tab-color3">
      <tr>
        <td>{$lang.list_sn}：</td>
        <td colspan="4" class="tab-align-l">{$sourcing_task.list_sn|escape}</td>
      </tr>
	  <!--{if $sourcing_task.sample_sn}-->
      <tr>
        <td>{$lang.sample_sn}：</td>
        <td colspan="4" class="tab-align-l">{$sourcing_task.sample_sn|escape}</td>
      </tr>
	  <!--{/if}-->
	  <!--{if $sourcing_task.order_sn}-->
      <tr>
        <td>{$lang.order_sn}：</td>
        <td colspan="4" class="tab-align-l">{$sourcing_task.order_sn|escape}</td>
      </tr>
	  <!--{/if}-->
      <tr>
        <td>{$lang.merchandiser}：</td>
        <td colspan="4" class="tab-align-l">{$sourcing_task.user_name|escape}</td>
      </tr>
      <tr>
        <th>{$lang.No}</th>
        <th>{$lang.sourcing_info}</th>
        <th>{$lang.fabric_info}</th>
        <th>{$lang.fabric_shop_name}</th>
        <th>{$lang.status}</th>
      </tr>
	  <!--{foreach from=$sourcing_task.item item=item name=i}-->
      <tr>
        <td width="70">{$smarty.foreach.i.iteration}</td>
        <td width="300">{$item.sourcing_info|escape}</td>
        <td width="300">{$item.fabric_info|escape}</td>
        <td width="200">{$item.fabric_shop_name|escape}</td>
        <td>{$lang.souritem_status.$item.status}</td>
      </tr>
	  <!--{/foreach}-->
      <tr>
        <td>{$lang.enclosure}：</td>
        <td id="sourcing_files" colspan="4" class="tab-align-l">
		<!--{foreach from=$sourcing_task.files item=file}-->
		<a href="download.php?id={$file.file_id}">{$file.file_name|escape}</a><!--{if !$smarty.foreach.last}--><br /><!--{/if}-->
		<!--{/foreach}-->
        </td>
      </tr>
    </table>

  </div>
</div>
<script language="javascript" type="text/javascript" src="{res file=js/tab_color.js}"></script>
</body>
</html>